<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<?php 
    $msg = "";
    if (array_key_exists("jaexiste", $_GET)) {
        $msg = "Usuario Existente";
    }elseif (array_key_exists("nosucess", $_GET)){
        $msg = "Ocorreu um erro durante o processo, tente novamente!";
    }
?>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link rel="stylesheet" type="text/css" href="css/style.css"/>
        <title>WEBEMAIL</title>
    </head>
    <body>
        <div id="newUser">
            <div id="logo">
                <img alt="logo" src="css/imagens/logo.png" />
                <h4>Novo Usuário</h4>
            </div>
            <div id="msg" style="color:red;">
                <?php 
                    if($msg != ""){
                        echo $msg;
                    }  
                ?>
            </div>               
            <form method="post" action="php/NovoUsuario.php">
                <table>
                    <td>
                    <tr>
                        <td><strong>Primeiro Nome:</strong></td> 
                        <td><input id="firstname" name="firstname" type="text" /> <br/></td>
                    </tr>
                    </td>
                    <td>
                    <tr>
                        <td><strong>Ultimo Nome:</strong></td>
                        <td><input id="lastname" name="lastname" type="text" /> <br/></td>
                    </tr>
                    </td>
                    <td>
                    <tr>
                        <td><strong>UserName:</strong></td> 
                        <td><input id="username" name="username" type="text" />@webmail.com <br/></td>
                    </tr>
                    </td>
                    <td>
                    <tr>
                        <td><strong>Senha:</strong></td>
                        <td><input id="senha" name="senha" type="password" /> <br/></td>
                    </tr>
                    </td>
                    <td><input id="buttonCadastrar" value="Cadastrar" type="submit" /> <br/></td>
                    <td><input id="buttonVoltar" value="Voltar" type="button" onclick="history.go(-1);" /> <br/></td>

                </table>
            </form>
        </div>
    </body>
</html>
